Fix debug build that was broken by recent shadow pagetable checkin.
authoriap10@firebug.cl.cam.ac.uk <iap10@firebug.cl.cam.ac.uk>
Sat, 3 Sep 2005 16:33:53 +0000 (16:33 +0000)
committeriap10@firebug.cl.cam.ac.uk <iap10@firebug.cl.cam.ac.uk>
Sat, 3 Sep 2005 16:33:53 +0000 (16:33 +0000)
Signed-off-by: ian@xensource.com
xen/arch/x86/shadow.c

index c158442b36620047e1260e891e2d567206cbc473..18496e2cf39776a52338ae39a3390a759a9bab6f 100644 (file)
@@ -531,7 +531,7 @@ static void shadow_map_l1_into_current_l2(unsigned long va)
     int i, init_table = 0;
 
     __guest_get_l2e(v, va, &gl2e);
-    ASSERT(l2e_get_flags(gl2e) & _PAGE_PRESENT);
+    ASSERT(guest_l2e_get_flags(gl2e) & _PAGE_PRESENT);
     gl1pfn = l2e_get_pfn(gl2e);
 
     if ( !(sl1mfn = __shadow_status(d, gl1pfn, PGT_l1_shadow)) )
@@ -1664,7 +1664,7 @@ static inline int l1pte_write_fault(
         return 0;
     }
 
-    ASSERT(l1e_get_flags(gpte) & _PAGE_RW);
+    ASSERT(guest_l1e_get_flags(gpte) & _PAGE_RW);
     guest_l1e_add_flags(gpte, _PAGE_DIRTY | _PAGE_ACCESSED);
     spte = l1e_from_pfn(gmfn, guest_l1e_get_flags(gpte) & ~_PAGE_GLOBAL);